package com.swiftops.common.model;

import java.util.List;

public class TreeEntity {
    private String id;
    private String parentId;
    private String label;
    private List<TreeEntity> children;

    public TreeEntity(String id, String parentId, String label) {
        this.id = id;
        this.parentId = parentId;
        this.label = label;
    }

    public String getId() {
        return id;
    }

    public String getParentId() {
        return parentId;
    }

    public String getLabel() {
        return label;
    }

    public List<TreeEntity> getChildren() {
        return children;
    }

    public void setChildren(List<TreeEntity> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "MyEntity{" +
                "id='" + id + '\'' +
                ", parentId='" + parentId + '\'' +
                ", label='" + label + '\'' +
                ", children=" + children +
                '}';
    }
}
